﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CNVP.JShop.BLL
{
    public  class CNVP_DeliveryTemplate
    {
        DAL.CNVP_DeliveryTemplate dal = new DAL.CNVP_DeliveryTemplate();

        #region BLL
        #region 添加
        /// <summary>
        /// 添加
        /// </summary>
        public int Add_CNVP_DeliveryTemplate(Model.CNVP_DeliveryTemplate obj)
        {
            return dal.Insert(obj);
        }
        #endregion

        #region 删除
        /// <summary>
        /// 删除
        /// </summary>
        public int Delete_CNVP_DeliveryTemplate(Model.CNVP_DeliveryTemplate obj)
        {
            return dal.Delete(obj);
        }

        /// <summary>
        /// 删除,生成列的主键列构成的参数列表
        /// </summary>
        public int Delete_CNVP_DeliveryTemplate(int DeliveryTemplateClassID)
        {
            return this.Delete_CNVP_DeliveryTemplate(new Model.CNVP_DeliveryTemplate()
            {
                DeliveryTemplateClassID = DeliveryTemplateClassID
            });
        }
        #endregion

        /// <summary>
        /// 查看全部
        /// </summary>
        public List<Model.CNVP_DeliveryTemplate> GetAll_CNVP_DeliveryTemplate(string sqlWhere)
        {
            return dal.LoadAll(sqlWhere);
        }
        /// <summary>
        /// 查看全部
        /// </summary>
        public List<Model.CNVP_DeliveryTemplate> GetAll_CNVP_DeliveryTemplate()
        {
            return this.GetAll_CNVP_DeliveryTemplate("");
        }
        #endregion
    }
}
